package zyb.myproject;

import java.io.Serializable;

//货物
public class Goods implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1718552133719721316L;
	int id;
	String goodName;
	double price;
	int num;

	public Goods(int id, String goodName, double price, int num) {
		this.id = id;
		this.goodName = goodName;
		this.price = price;
		this.num = num;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getGoodName() {
		return goodName;
	}

	public void setGoodName(String goodName) {
		this.goodName = goodName;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	@Override
	public String toString() {
		return "商品信息： [商品ID：" + id + ", 商品名称：" + goodName + ", 商品价格：" + price + ",商品数量：" + num + "]";
	}

}
